package com.zenith.middleware;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * 此服务作为中间件服务，如需要缓存数据时，通过feign调用其他服务获取数据，将其缓存在此服务中，并返回给调用方
 */
@SpringBootApplication(exclude = {
    org.springframework.boot.actuate.autoconfigure.tracing.zipkin.ZipkinAutoConfiguration.class
})
@EnableFeignClients
@EnableCaching
@ComponentScan(basePackages = {"com.zenith.middleware", "com.zenith.common"})
public class MIddlewareApplication {
    public static void main(String[] args) {
        SpringApplication.run(MIddlewareApplication.class, args);
    }
}